<!DOCTYPE html>
<html>
{% load staticfiles %}
{#{% static '' %}#}
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="{% static 'css/reset/reset.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/reset/login.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/ncss.css' %}">

    <style>
        body {
            background: #fff;
        }
    </style>

</head>
<body>


<div class="all_page_head">
    <div class="wp">
        <div class="all_page_head_message clearfix" style="height: 72px;width: 100%;">
            <a href="{% url 'index' %}"><img src="{% static 'images/logo_11261.png' %}" alt="" style="height: 72px" class="fl"></a>
            <div class="go_url_box fl" style="height: 72px;width: 300px;">
                <a href="{% url 'index' %}">
                    <div class="url_div_box fl" style="text-indent: 30px">首页</div>
                </a>
                <a href="{% url 'course:list' %}">
                    <div class="url_div_box fl">课程</div>
                </a>
                <a href="{% url 'course:list' %}?sort=price">
                    <div class="url_div_box fl">付费课程</div>
                </a>
                <a href="{% url 'org:teachers' %}">
                    <div class="url_div_box fl">教师</div>
                </a>
            </div>
            <div class="search_text fl">
                <span class="selectOption" id="jsSelectOption"
                      data-value="{% if s_type %}{{ s_type }}{% else %}course{% endif %}" style="display: none;">
                                {% if s_type == 'course' %}公开课{% endif %}
                </span>
                <input id="search_keywords" class="search_keywords_textarea" type="text" value="{{ keywords }}"
                       placeholder="搜索您想要的课程"/>
                <div class="search_keywords_btn" id="jsSearchBtn">Search</div>
            </div>
            <div class="my_img_course fl">
                {% if user.is_authenticated %}
                    <div class="if_user_auth">
                        <div class="fl"><a href="{% url 'users:mycourse' %}">
                            <div class="enter_my_course_center">我的课程</div>
                        </a></div>
                        <div class="user_auth_welcome">欢迎您,{% if user.nick_name %}{{ user.nick_name }}{% else %}
                            {{ user.username }}{% endif %}</div>
                        <a href="{% url 'logout' %}">
                            <div class="user_quit">Quit</div>
                        </a>
                        <div class="fl"><a href="{% url 'users:info' %}"><img class="if_user_auth_img"
                                                                              src="{{ user.image.url }}" alt=""></a>
                        </div>
                    </div>
                {% else %}
                    <div class="if_user_not_auth">
                        <div class="fl" style="width: 60px;height: 72px;"></div>
                        <a href="{% url 'register' %}">
                            <div class="url_div_box_rl fl">注册</div>
                        </a>
                        <a href="{% url 'login' %}">
                            <div class="url_div_box_rl fl">登陆</div>
                        </a>
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
</div>


<section>
    <div class="c-box bg-box" style="background: #fff;">
        <div class="login-box clearfix" style="border: 20px;box-shadow: 0 8px 16px 0 rgba(28,31,33,.3);">

            <div class="fl form-box">
                <div class="tab">
                    <h2 class="{% if dynamic_login %}{% else %}active{% endif %}">账号登录</h2>
                    <h2 class="{% if dynamic_login %}active{% else %}{% endif %}">动态登录</h2>
                </div>
                <form class="tab-form {% if dynamic_login %}hide{% else %}{% endif %}"
                      action="{% url 'login' %}?next={{ next }}" method="post" autocomplete="off" id="form1">
                    <div class="form-group marb20 {% if login_form.errors.username %}errorput{% endif %}">
                        <input name="username" id="account_l" value="{{ login_form.username.value }}" type="text"
                               placeholder="手机号/邮箱"/>
                    </div>
                    <div class="form-group marb8 {% if login_form.errors.password %}errorput{% endif %}">
                        <input name="password" id="password_l" value="{{ login_form.password.value }}" type="password"
                               placeholder="请输入您的密码"/>
                    </div>
                    <div class="error btns login-form-tips" id="jsLoginTips">
                        {% if login_form.errors %}{% for key,error in login_form.errors.items %}{{ error }}
                        {% endfor %}{% else %}{{ msg }}{% endif %}</div>

                    <input class="btn btn-green" id="jsLoginBtn" type="submit" value="立即登录 > "/>
                    {% csrf_token %}
                </form>

                <form class="tab-form {% if dynamic_login %}{% else %}hide{% endif %}" action="{% url 'd_login' %}"
                      id="mobile_register_form" autocomplete="off" method="post" id="form2">

                    <div class="form-group marb20">
                        <input id="jsRegMobile" name="mobile" value="{{ login_form.mobile.value|default_if_none:'' }}"
                               type="text" placeholder="请输入您的手机号码">
                    </div>
                    <div class="form-group marb20 blur" id="jsRefreshCode">
                        {{ login_form.captcha }}
                        {{ d_form.captcha }}
                    </div>
                    <div class="clearfix">
                        <div class="form-group marb8 verify-code">
                            <input id="jsPhoneRegCaptcha" name="code"
                                   value="{{ login_form.code.value|default_if_none:'' }}" type="text"
                                   placeholder="输入手机验证码">
                        </div>
                        <input class="verify-code-btn sendcode" id="jsSendCode" value="发送验证码">
                    </div>
                    <div class="error btns" id="jsMobileTips" style="">
                        {% if login_form.errors %}{% for key,error in login_form.errors.items %}{{ error }}
                        {% endfor %}{% else %}{{ msg }}{% endif %}</div>
                    <div class="auto-box marb8">
                    </div>
                    <input class="btn btn-green" id="jsMobileRegBtn" type="button" value="立即登录">
                    {% csrf_token %}
                </form>
                <p class="form-p">没有帐号？<a href="{% url 'register' %}">[立即注册]</a></p>
            </div>
        </div>
    </div>
</section>
<script src="{% static 'js/jquery/jquery.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/jquery/unslider.js' %}" type="text/javascript"></script>
<script src="{% static 'js/jquery/validateDialog.js' %}" type="text/javascript"></script>
<script src="{% static 'js/login.js' %}" type="text/javascript"></script>
</body>
</html><!DOCTYPE html>
<html>

{#{% static '' %}#}